package com.example.dairenkun.neufoodshop.service;

import com.example.dairenkun.neufoodshop.bean.Food;
import com.example.dairenkun.neufoodshop.bean.Order;


import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/4/10.
 */

public interface FoodService {
    //获取店铺菜单
    @GET("getFoodByShop.do")
    Call<List<Food>> getShopFood(
            @Query("shop_id") int shop
    );
    //获取菜单详情
    @GET("getFoodById.do")
    Call<Food> getFoodDetail(
            @Query("food_id") int food
    );
    //获取菜单评论信息
    @GET("getAllUserFoodOrder.do")
    Call<List<Order>> getFoodComment(
            @Query("food_id") int foodid
    );
}
